// 复制对象或者复制数组
let obj = {
    name: 'zhangsan',
    age: 12
}
let obj2 = {
    ...obj,
    gender:'男'
};
// let obj2 = obj;
obj.name = 'lisi';
console.log(obj.name,obj2.name);

let arr = [1,2,3];

// JSON.parse(JSON.stringify(obj));

